package com.paddyi.service;

import com.paddyi.model.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 *  (Account)
 * @author paddy
 * @since  2019-08-09 12:00:53
 */
@Service
public interface IAccountService extends IService<Account> {

    /**
     * 支付
     * @param account
     * @return
     */
    boolean pay(Account account);

    /**
     * 通过用户ID获取用户金额信息
     * @param userId
     * @return
     */
    Account findAccountByUserId(Long userId);
}
